
package com.zjff.myshop.admin.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 后台订单管理页面：订单VO
 */
@Data
public class OrderVO implements Serializable {

    @ApiModelProperty(value = "订单id",position = 1)
    private Integer id;

    @ApiModelProperty(value = "用户id",position = 2)
    private Integer userId;

    @ApiModelProperty(value = "总金额",position = 3)
    private BigDecimal amount;

    @ApiModelProperty(value = "收货地址姓名",position = 4)
    private String addressName;

    @ApiModelProperty(value = "收货地址电话", position = 5)
    private String addressTel;

    @ApiModelProperty(value = "收货地址详情", position = 6)
    private String addressDetail;

    @ApiModelProperty(value = "订单备注", position = 7)
    private String note;

    @ApiModelProperty(value = "状态", position = 9)
    private Byte status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", position = 10)
    private Date createTime;

//    @ApiModelProperty(value = "订单项列表", position = 11)
//    private List<OrderItemVO> orderItemList;
}
